package com.crm.model.entity.couponManager;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CouponExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CouponExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andChsCustomerCouponIdIsNull() {
            addCriterion("chs_customer_coupon_id is null");
            return (Criteria) this;
        }

        public Criteria andChsCustomerCouponIdIsNotNull() {
            addCriterion("chs_customer_coupon_id is not null");
            return (Criteria) this;
        }

        public Criteria andChsCustomerCouponIdEqualTo(String value) {
            addCriterion("chs_customer_coupon_id =", value, "chsCustomerCouponId");
            return (Criteria) this;
        }

        public Criteria andChsCustomerCouponIdNotEqualTo(String value) {
            addCriterion("chs_customer_coupon_id <>", value, "chsCustomerCouponId");
            return (Criteria) this;
        }

        public Criteria andChsCustomerCouponIdGreaterThan(String value) {
            addCriterion("chs_customer_coupon_id >", value, "chsCustomerCouponId");
            return (Criteria) this;
        }

        public Criteria andChsCustomerCouponIdGreaterThanOrEqualTo(String value) {
            addCriterion("chs_customer_coupon_id >=", value, "chsCustomerCouponId");
            return (Criteria) this;
        }

        public Criteria andChsCustomerCouponIdLessThan(String value) {
            addCriterion("chs_customer_coupon_id <", value, "chsCustomerCouponId");
            return (Criteria) this;
        }

        public Criteria andChsCustomerCouponIdLessThanOrEqualTo(String value) {
            addCriterion("chs_customer_coupon_id <=", value, "chsCustomerCouponId");
            return (Criteria) this;
        }

        public Criteria andChsCustomerCouponIdLike(String value) {
            addCriterion("chs_customer_coupon_id like", value, "chsCustomerCouponId");
            return (Criteria) this;
        }

        public Criteria andChsCustomerCouponIdNotLike(String value) {
            addCriterion("chs_customer_coupon_id not like", value, "chsCustomerCouponId");
            return (Criteria) this;
        }

        public Criteria andChsCustomerCouponIdIn(List<String> values) {
            addCriterion("chs_customer_coupon_id in", values, "chsCustomerCouponId");
            return (Criteria) this;
        }

        public Criteria andChsCustomerCouponIdNotIn(List<String> values) {
            addCriterion("chs_customer_coupon_id not in", values, "chsCustomerCouponId");
            return (Criteria) this;
        }

        public Criteria andChsCustomerCouponIdBetween(String value1, String value2) {
            addCriterion("chs_customer_coupon_id between", value1, value2, "chsCustomerCouponId");
            return (Criteria) this;
        }

        public Criteria andChsCustomerCouponIdNotBetween(String value1, String value2) {
            addCriterion("chs_customer_coupon_id not between", value1, value2, "chsCustomerCouponId");
            return (Criteria) this;
        }

        public Criteria andCouponNameIsNull() {
            addCriterion("coupon_name is null");
            return (Criteria) this;
        }

        public Criteria andCouponNameIsNotNull() {
            addCriterion("coupon_name is not null");
            return (Criteria) this;
        }

        public Criteria andCouponNameEqualTo(String value) {
            addCriterion("coupon_name =", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameNotEqualTo(String value) {
            addCriterion("coupon_name <>", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameGreaterThan(String value) {
            addCriterion("coupon_name >", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameGreaterThanOrEqualTo(String value) {
            addCriterion("coupon_name >=", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameLessThan(String value) {
            addCriterion("coupon_name <", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameLessThanOrEqualTo(String value) {
            addCriterion("coupon_name <=", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameLike(String value) {
            addCriterion("coupon_name like", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameNotLike(String value) {
            addCriterion("coupon_name not like", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameIn(List<String> values) {
            addCriterion("coupon_name in", values, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameNotIn(List<String> values) {
            addCriterion("coupon_name not in", values, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameBetween(String value1, String value2) {
            addCriterion("coupon_name between", value1, value2, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameNotBetween(String value1, String value2) {
            addCriterion("coupon_name not between", value1, value2, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponTypeIsNull() {
            addCriterion("coupon_type is null");
            return (Criteria) this;
        }

        public Criteria andCouponTypeIsNotNull() {
            addCriterion("coupon_type is not null");
            return (Criteria) this;
        }

        public Criteria andCouponTypeEqualTo(Short value) {
            addCriterion("coupon_type =", value, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeNotEqualTo(Short value) {
            addCriterion("coupon_type <>", value, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeGreaterThan(Short value) {
            addCriterion("coupon_type >", value, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeGreaterThanOrEqualTo(Short value) {
            addCriterion("coupon_type >=", value, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeLessThan(Short value) {
            addCriterion("coupon_type <", value, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeLessThanOrEqualTo(Short value) {
            addCriterion("coupon_type <=", value, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeIn(List<Short> values) {
            addCriterion("coupon_type in", values, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeNotIn(List<Short> values) {
            addCriterion("coupon_type not in", values, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeBetween(Short value1, Short value2) {
            addCriterion("coupon_type between", value1, value2, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeNotBetween(Short value1, Short value2) {
            addCriterion("coupon_type not between", value1, value2, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponQuotaIsNull() {
            addCriterion("coupon_quota is null");
            return (Criteria) this;
        }

        public Criteria andCouponQuotaIsNotNull() {
            addCriterion("coupon_quota is not null");
            return (Criteria) this;
        }

        public Criteria andCouponQuotaEqualTo(BigDecimal value) {
            addCriterion("coupon_quota =", value, "couponQuota");
            return (Criteria) this;
        }

        public Criteria andCouponQuotaNotEqualTo(BigDecimal value) {
            addCriterion("coupon_quota <>", value, "couponQuota");
            return (Criteria) this;
        }

        public Criteria andCouponQuotaGreaterThan(BigDecimal value) {
            addCriterion("coupon_quota >", value, "couponQuota");
            return (Criteria) this;
        }

        public Criteria andCouponQuotaGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("coupon_quota >=", value, "couponQuota");
            return (Criteria) this;
        }

        public Criteria andCouponQuotaLessThan(BigDecimal value) {
            addCriterion("coupon_quota <", value, "couponQuota");
            return (Criteria) this;
        }

        public Criteria andCouponQuotaLessThanOrEqualTo(BigDecimal value) {
            addCriterion("coupon_quota <=", value, "couponQuota");
            return (Criteria) this;
        }

        public Criteria andCouponQuotaIn(List<BigDecimal> values) {
            addCriterion("coupon_quota in", values, "couponQuota");
            return (Criteria) this;
        }

        public Criteria andCouponQuotaNotIn(List<BigDecimal> values) {
            addCriterion("coupon_quota not in", values, "couponQuota");
            return (Criteria) this;
        }

        public Criteria andCouponQuotaBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("coupon_quota between", value1, value2, "couponQuota");
            return (Criteria) this;
        }

        public Criteria andCouponQuotaNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("coupon_quota not between", value1, value2, "couponQuota");
            return (Criteria) this;
        }

        public Criteria andCouponDiscountIsNull() {
            addCriterion("coupon_discount is null");
            return (Criteria) this;
        }

        public Criteria andCouponDiscountIsNotNull() {
            addCriterion("coupon_discount is not null");
            return (Criteria) this;
        }

        public Criteria andCouponDiscountEqualTo(BigDecimal value) {
            addCriterion("coupon_discount =", value, "couponDiscount");
            return (Criteria) this;
        }

        public Criteria andCouponDiscountNotEqualTo(BigDecimal value) {
            addCriterion("coupon_discount <>", value, "couponDiscount");
            return (Criteria) this;
        }

        public Criteria andCouponDiscountGreaterThan(BigDecimal value) {
            addCriterion("coupon_discount >", value, "couponDiscount");
            return (Criteria) this;
        }

        public Criteria andCouponDiscountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("coupon_discount >=", value, "couponDiscount");
            return (Criteria) this;
        }

        public Criteria andCouponDiscountLessThan(BigDecimal value) {
            addCriterion("coupon_discount <", value, "couponDiscount");
            return (Criteria) this;
        }

        public Criteria andCouponDiscountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("coupon_discount <=", value, "couponDiscount");
            return (Criteria) this;
        }

        public Criteria andCouponDiscountIn(List<BigDecimal> values) {
            addCriterion("coupon_discount in", values, "couponDiscount");
            return (Criteria) this;
        }

        public Criteria andCouponDiscountNotIn(List<BigDecimal> values) {
            addCriterion("coupon_discount not in", values, "couponDiscount");
            return (Criteria) this;
        }

        public Criteria andCouponDiscountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("coupon_discount between", value1, value2, "couponDiscount");
            return (Criteria) this;
        }

        public Criteria andCouponDiscountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("coupon_discount not between", value1, value2, "couponDiscount");
            return (Criteria) this;
        }

        public Criteria andCouponStatusIsNull() {
            addCriterion("coupon_status is null");
            return (Criteria) this;
        }

        public Criteria andCouponStatusIsNotNull() {
            addCriterion("coupon_status is not null");
            return (Criteria) this;
        }

        public Criteria andCouponStatusEqualTo(Short value) {
            addCriterion("coupon_status =", value, "couponStatus");
            return (Criteria) this;
        }

        public Criteria andCouponStatusNotEqualTo(Short value) {
            addCriterion("coupon_status <>", value, "couponStatus");
            return (Criteria) this;
        }

        public Criteria andCouponStatusGreaterThan(Short value) {
            addCriterion("coupon_status >", value, "couponStatus");
            return (Criteria) this;
        }

        public Criteria andCouponStatusGreaterThanOrEqualTo(Short value) {
            addCriterion("coupon_status >=", value, "couponStatus");
            return (Criteria) this;
        }

        public Criteria andCouponStatusLessThan(Short value) {
            addCriterion("coupon_status <", value, "couponStatus");
            return (Criteria) this;
        }

        public Criteria andCouponStatusLessThanOrEqualTo(Short value) {
            addCriterion("coupon_status <=", value, "couponStatus");
            return (Criteria) this;
        }

        public Criteria andCouponStatusIn(List<Short> values) {
            addCriterion("coupon_status in", values, "couponStatus");
            return (Criteria) this;
        }

        public Criteria andCouponStatusNotIn(List<Short> values) {
            addCriterion("coupon_status not in", values, "couponStatus");
            return (Criteria) this;
        }

        public Criteria andCouponStatusBetween(Short value1, Short value2) {
            addCriterion("coupon_status between", value1, value2, "couponStatus");
            return (Criteria) this;
        }

        public Criteria andCouponStatusNotBetween(Short value1, Short value2) {
            addCriterion("coupon_status not between", value1, value2, "couponStatus");
            return (Criteria) this;
        }

        public Criteria andCouponUseCountIsNull() {
            addCriterion("coupon_use_count is null");
            return (Criteria) this;
        }

        public Criteria andCouponUseCountIsNotNull() {
            addCriterion("coupon_use_count is not null");
            return (Criteria) this;
        }

        public Criteria andCouponUseCountEqualTo(Integer value) {
            addCriterion("coupon_use_count =", value, "couponUseCount");
            return (Criteria) this;
        }

        public Criteria andCouponUseCountNotEqualTo(Integer value) {
            addCriterion("coupon_use_count <>", value, "couponUseCount");
            return (Criteria) this;
        }

        public Criteria andCouponUseCountGreaterThan(Integer value) {
            addCriterion("coupon_use_count >", value, "couponUseCount");
            return (Criteria) this;
        }

        public Criteria andCouponUseCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("coupon_use_count >=", value, "couponUseCount");
            return (Criteria) this;
        }

        public Criteria andCouponUseCountLessThan(Integer value) {
            addCriterion("coupon_use_count <", value, "couponUseCount");
            return (Criteria) this;
        }

        public Criteria andCouponUseCountLessThanOrEqualTo(Integer value) {
            addCriterion("coupon_use_count <=", value, "couponUseCount");
            return (Criteria) this;
        }

        public Criteria andCouponUseCountIn(List<Integer> values) {
            addCriterion("coupon_use_count in", values, "couponUseCount");
            return (Criteria) this;
        }

        public Criteria andCouponUseCountNotIn(List<Integer> values) {
            addCriterion("coupon_use_count not in", values, "couponUseCount");
            return (Criteria) this;
        }

        public Criteria andCouponUseCountBetween(Integer value1, Integer value2) {
            addCriterion("coupon_use_count between", value1, value2, "couponUseCount");
            return (Criteria) this;
        }

        public Criteria andCouponUseCountNotBetween(Integer value1, Integer value2) {
            addCriterion("coupon_use_count not between", value1, value2, "couponUseCount");
            return (Criteria) this;
        }

        public Criteria andCouponCountIsNull() {
            addCriterion("coupon_count is null");
            return (Criteria) this;
        }

        public Criteria andCouponCountIsNotNull() {
            addCriterion("coupon_count is not null");
            return (Criteria) this;
        }

        public Criteria andCouponCountEqualTo(Integer value) {
            addCriterion("coupon_count =", value, "couponCount");
            return (Criteria) this;
        }

        public Criteria andCouponCountNotEqualTo(Integer value) {
            addCriterion("coupon_count <>", value, "couponCount");
            return (Criteria) this;
        }

        public Criteria andCouponCountGreaterThan(Integer value) {
            addCriterion("coupon_count >", value, "couponCount");
            return (Criteria) this;
        }

        public Criteria andCouponCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("coupon_count >=", value, "couponCount");
            return (Criteria) this;
        }

        public Criteria andCouponCountLessThan(Integer value) {
            addCriterion("coupon_count <", value, "couponCount");
            return (Criteria) this;
        }

        public Criteria andCouponCountLessThanOrEqualTo(Integer value) {
            addCriterion("coupon_count <=", value, "couponCount");
            return (Criteria) this;
        }

        public Criteria andCouponCountIn(List<Integer> values) {
            addCriterion("coupon_count in", values, "couponCount");
            return (Criteria) this;
        }

        public Criteria andCouponCountNotIn(List<Integer> values) {
            addCriterion("coupon_count not in", values, "couponCount");
            return (Criteria) this;
        }

        public Criteria andCouponCountBetween(Integer value1, Integer value2) {
            addCriterion("coupon_count between", value1, value2, "couponCount");
            return (Criteria) this;
        }

        public Criteria andCouponCountNotBetween(Integer value1, Integer value2) {
            addCriterion("coupon_count not between", value1, value2, "couponCount");
            return (Criteria) this;
        }

        public Criteria andCouponPropertyIsNull() {
            addCriterion("coupon_property is null");
            return (Criteria) this;
        }

        public Criteria andCouponPropertyIsNotNull() {
            addCriterion("coupon_property is not null");
            return (Criteria) this;
        }

        public Criteria andCouponPropertyEqualTo(Short value) {
            addCriterion("coupon_property =", value, "couponProperty");
            return (Criteria) this;
        }

        public Criteria andCouponPropertyNotEqualTo(Short value) {
            addCriterion("coupon_property <>", value, "couponProperty");
            return (Criteria) this;
        }

        public Criteria andCouponPropertyGreaterThan(Short value) {
            addCriterion("coupon_property >", value, "couponProperty");
            return (Criteria) this;
        }

        public Criteria andCouponPropertyGreaterThanOrEqualTo(Short value) {
            addCriterion("coupon_property >=", value, "couponProperty");
            return (Criteria) this;
        }

        public Criteria andCouponPropertyLessThan(Short value) {
            addCriterion("coupon_property <", value, "couponProperty");
            return (Criteria) this;
        }

        public Criteria andCouponPropertyLessThanOrEqualTo(Short value) {
            addCriterion("coupon_property <=", value, "couponProperty");
            return (Criteria) this;
        }

        public Criteria andCouponPropertyIn(List<Short> values) {
            addCriterion("coupon_property in", values, "couponProperty");
            return (Criteria) this;
        }

        public Criteria andCouponPropertyNotIn(List<Short> values) {
            addCriterion("coupon_property not in", values, "couponProperty");
            return (Criteria) this;
        }

        public Criteria andCouponPropertyBetween(Short value1, Short value2) {
            addCriterion("coupon_property between", value1, value2, "couponProperty");
            return (Criteria) this;
        }

        public Criteria andCouponPropertyNotBetween(Short value1, Short value2) {
            addCriterion("coupon_property not between", value1, value2, "couponProperty");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIsNull() {
            addCriterion("delete_status is null");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIsNotNull() {
            addCriterion("delete_status is not null");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusEqualTo(Short value) {
            addCriterion("delete_status =", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotEqualTo(Short value) {
            addCriterion("delete_status <>", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusGreaterThan(Short value) {
            addCriterion("delete_status >", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusGreaterThanOrEqualTo(Short value) {
            addCriterion("delete_status >=", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusLessThan(Short value) {
            addCriterion("delete_status <", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusLessThanOrEqualTo(Short value) {
            addCriterion("delete_status <=", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIn(List<Short> values) {
            addCriterion("delete_status in", values, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotIn(List<Short> values) {
            addCriterion("delete_status not in", values, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusBetween(Short value1, Short value2) {
            addCriterion("delete_status between", value1, value2, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotBetween(Short value1, Short value2) {
            addCriterion("delete_status not between", value1, value2, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdIsNull() {
            addCriterion("create_people_id is null");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdIsNotNull() {
            addCriterion("create_people_id is not null");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdEqualTo(String value) {
            addCriterion("create_people_id =", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotEqualTo(String value) {
            addCriterion("create_people_id <>", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdGreaterThan(String value) {
            addCriterion("create_people_id >", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdGreaterThanOrEqualTo(String value) {
            addCriterion("create_people_id >=", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdLessThan(String value) {
            addCriterion("create_people_id <", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdLessThanOrEqualTo(String value) {
            addCriterion("create_people_id <=", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdLike(String value) {
            addCriterion("create_people_id like", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotLike(String value) {
            addCriterion("create_people_id not like", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdIn(List<String> values) {
            addCriterion("create_people_id in", values, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotIn(List<String> values) {
            addCriterion("create_people_id not in", values, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdBetween(String value1, String value2) {
            addCriterion("create_people_id between", value1, value2, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotBetween(String value1, String value2) {
            addCriterion("create_people_id not between", value1, value2, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreateTmIsNull() {
            addCriterion("create_tm is null");
            return (Criteria) this;
        }

        public Criteria andCreateTmIsNotNull() {
            addCriterion("create_tm is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTmEqualTo(Date value) {
            addCriterion("create_tm =", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotEqualTo(Date value) {
            addCriterion("create_tm <>", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmGreaterThan(Date value) {
            addCriterion("create_tm >", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmGreaterThanOrEqualTo(Date value) {
            addCriterion("create_tm >=", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmLessThan(Date value) {
            addCriterion("create_tm <", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmLessThanOrEqualTo(Date value) {
            addCriterion("create_tm <=", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmIn(List<Date> values) {
            addCriterion("create_tm in", values, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotIn(List<Date> values) {
            addCriterion("create_tm not in", values, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmBetween(Date value1, Date value2) {
            addCriterion("create_tm between", value1, value2, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotBetween(Date value1, Date value2) {
            addCriterion("create_tm not between", value1, value2, "createTm");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdIsNull() {
            addCriterion("update_people_id is null");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdIsNotNull() {
            addCriterion("update_people_id is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdEqualTo(String value) {
            addCriterion("update_people_id =", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdNotEqualTo(String value) {
            addCriterion("update_people_id <>", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdGreaterThan(String value) {
            addCriterion("update_people_id >", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdGreaterThanOrEqualTo(String value) {
            addCriterion("update_people_id >=", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdLessThan(String value) {
            addCriterion("update_people_id <", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdLessThanOrEqualTo(String value) {
            addCriterion("update_people_id <=", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdLike(String value) {
            addCriterion("update_people_id like", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdNotLike(String value) {
            addCriterion("update_people_id not like", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdIn(List<String> values) {
            addCriterion("update_people_id in", values, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdNotIn(List<String> values) {
            addCriterion("update_people_id not in", values, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdBetween(String value1, String value2) {
            addCriterion("update_people_id between", value1, value2, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdNotBetween(String value1, String value2) {
            addCriterion("update_people_id not between", value1, value2, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdateTmIsNull() {
            addCriterion("update_tm is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTmIsNotNull() {
            addCriterion("update_tm is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTmEqualTo(Date value) {
            addCriterion("update_tm =", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmNotEqualTo(Date value) {
            addCriterion("update_tm <>", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmGreaterThan(Date value) {
            addCriterion("update_tm >", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmGreaterThanOrEqualTo(Date value) {
            addCriterion("update_tm >=", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmLessThan(Date value) {
            addCriterion("update_tm <", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmLessThanOrEqualTo(Date value) {
            addCriterion("update_tm <=", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmIn(List<Date> values) {
            addCriterion("update_tm in", values, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmNotIn(List<Date> values) {
            addCriterion("update_tm not in", values, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmBetween(Date value1, Date value2) {
            addCriterion("update_tm between", value1, value2, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmNotBetween(Date value1, Date value2) {
            addCriterion("update_tm not between", value1, value2, "updateTm");
            return (Criteria) this;
        }

        public Criteria andScopeOfApplicationIsNull() {
            addCriterion("scope_of_application is null");
            return (Criteria) this;
        }

        public Criteria andScopeOfApplicationIsNotNull() {
            addCriterion("scope_of_application is not null");
            return (Criteria) this;
        }

        public Criteria andScopeOfApplicationEqualTo(Short value) {
            addCriterion("scope_of_application =", value, "scopeOfApplication");
            return (Criteria) this;
        }

        public Criteria andScopeOfApplicationNotEqualTo(Short value) {
            addCriterion("scope_of_application <>", value, "scopeOfApplication");
            return (Criteria) this;
        }

        public Criteria andScopeOfApplicationGreaterThan(Short value) {
            addCriterion("scope_of_application >", value, "scopeOfApplication");
            return (Criteria) this;
        }

        public Criteria andScopeOfApplicationGreaterThanOrEqualTo(Short value) {
            addCriterion("scope_of_application >=", value, "scopeOfApplication");
            return (Criteria) this;
        }

        public Criteria andScopeOfApplicationLessThan(Short value) {
            addCriterion("scope_of_application <", value, "scopeOfApplication");
            return (Criteria) this;
        }

        public Criteria andScopeOfApplicationLessThanOrEqualTo(Short value) {
            addCriterion("scope_of_application <=", value, "scopeOfApplication");
            return (Criteria) this;
        }

        public Criteria andScopeOfApplicationIn(List<Short> values) {
            addCriterion("scope_of_application in", values, "scopeOfApplication");
            return (Criteria) this;
        }

        public Criteria andScopeOfApplicationNotIn(List<Short> values) {
            addCriterion("scope_of_application not in", values, "scopeOfApplication");
            return (Criteria) this;
        }

        public Criteria andScopeOfApplicationBetween(Short value1, Short value2) {
            addCriterion("scope_of_application between", value1, value2, "scopeOfApplication");
            return (Criteria) this;
        }

        public Criteria andScopeOfApplicationNotBetween(Short value1, Short value2) {
            addCriterion("scope_of_application not between", value1, value2, "scopeOfApplication");
            return (Criteria) this;
        }

        public Criteria andValidPeriodIsNull() {
            addCriterion("valid_period is null");
            return (Criteria) this;
        }

        public Criteria andValidPeriodIsNotNull() {
            addCriterion("valid_period is not null");
            return (Criteria) this;
        }

        public Criteria andValidPeriodEqualTo(Date value) {
            addCriterion("valid_period =", value, "validPeriod");
            return (Criteria) this;
        }

        public Criteria andValidPeriodNotEqualTo(Date value) {
            addCriterion("valid_period <>", value, "validPeriod");
            return (Criteria) this;
        }

        public Criteria andValidPeriodGreaterThan(Date value) {
            addCriterion("valid_period >", value, "validPeriod");
            return (Criteria) this;
        }

        public Criteria andValidPeriodGreaterThanOrEqualTo(Date value) {
            addCriterion("valid_period >=", value, "validPeriod");
            return (Criteria) this;
        }

        public Criteria andValidPeriodLessThan(Date value) {
            addCriterion("valid_period <", value, "validPeriod");
            return (Criteria) this;
        }

        public Criteria andValidPeriodLessThanOrEqualTo(Date value) {
            addCriterion("valid_period <=", value, "validPeriod");
            return (Criteria) this;
        }

        public Criteria andValidPeriodIn(List<Date> values) {
            addCriterion("valid_period in", values, "validPeriod");
            return (Criteria) this;
        }

        public Criteria andValidPeriodNotIn(List<Date> values) {
            addCriterion("valid_period not in", values, "validPeriod");
            return (Criteria) this;
        }

        public Criteria andValidPeriodBetween(Date value1, Date value2) {
            addCriterion("valid_period between", value1, value2, "validPeriod");
            return (Criteria) this;
        }

        public Criteria andValidPeriodNotBetween(Date value1, Date value2) {
            addCriterion("valid_period not between", value1, value2, "validPeriod");
            return (Criteria) this;
        }

        public Criteria andValidPeriodStartIsNull() {
            addCriterion("valid_period_start is null");
            return (Criteria) this;
        }

        public Criteria andValidPeriodStartIsNotNull() {
            addCriterion("valid_period_start is not null");
            return (Criteria) this;
        }

        public Criteria andValidPeriodStartEqualTo(Date value) {
            addCriterion("valid_period_start =", value, "validPeriodStart");
            return (Criteria) this;
        }

        public Criteria andValidPeriodStartNotEqualTo(Date value) {
            addCriterion("valid_period_start <>", value, "validPeriodStart");
            return (Criteria) this;
        }

        public Criteria andValidPeriodStartGreaterThan(Date value) {
            addCriterion("valid_period_start >", value, "validPeriodStart");
            return (Criteria) this;
        }

        public Criteria andValidPeriodStartGreaterThanOrEqualTo(Date value) {
            addCriterion("valid_period_start >=", value, "validPeriodStart");
            return (Criteria) this;
        }

        public Criteria andValidPeriodStartLessThan(Date value) {
            addCriterion("valid_period_start <", value, "validPeriodStart");
            return (Criteria) this;
        }

        public Criteria andValidPeriodStartLessThanOrEqualTo(Date value) {
            addCriterion("valid_period_start <=", value, "validPeriodStart");
            return (Criteria) this;
        }

        public Criteria andValidPeriodStartIn(List<Date> values) {
            addCriterion("valid_period_start in", values, "validPeriodStart");
            return (Criteria) this;
        }

        public Criteria andValidPeriodStartNotIn(List<Date> values) {
            addCriterion("valid_period_start not in", values, "validPeriodStart");
            return (Criteria) this;
        }

        public Criteria andValidPeriodStartBetween(Date value1, Date value2) {
            addCriterion("valid_period_start between", value1, value2, "validPeriodStart");
            return (Criteria) this;
        }

        public Criteria andValidPeriodStartNotBetween(Date value1, Date value2) {
            addCriterion("valid_period_start not between", value1, value2, "validPeriodStart");
            return (Criteria) this;
        }

        public Criteria andUseTypeIsNull() {
            addCriterion("use_type is null");
            return (Criteria) this;
        }

        public Criteria andUseTypeIsNotNull() {
            addCriterion("use_type is not null");
            return (Criteria) this;
        }

        public Criteria andUseTypeEqualTo(Short value) {
            addCriterion("use_type =", value, "useType");
            return (Criteria) this;
        }

        public Criteria andUseTypeNotEqualTo(Short value) {
            addCriterion("use_type <>", value, "useType");
            return (Criteria) this;
        }

        public Criteria andUseTypeGreaterThan(Short value) {
            addCriterion("use_type >", value, "useType");
            return (Criteria) this;
        }

        public Criteria andUseTypeGreaterThanOrEqualTo(Short value) {
            addCriterion("use_type >=", value, "useType");
            return (Criteria) this;
        }

        public Criteria andUseTypeLessThan(Short value) {
            addCriterion("use_type <", value, "useType");
            return (Criteria) this;
        }

        public Criteria andUseTypeLessThanOrEqualTo(Short value) {
            addCriterion("use_type <=", value, "useType");
            return (Criteria) this;
        }

        public Criteria andUseTypeIn(List<Short> values) {
            addCriterion("use_type in", values, "useType");
            return (Criteria) this;
        }

        public Criteria andUseTypeNotIn(List<Short> values) {
            addCriterion("use_type not in", values, "useType");
            return (Criteria) this;
        }

        public Criteria andUseTypeBetween(Short value1, Short value2) {
            addCriterion("use_type between", value1, value2, "useType");
            return (Criteria) this;
        }

        public Criteria andUseTypeNotBetween(Short value1, Short value2) {
            addCriterion("use_type not between", value1, value2, "useType");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}